import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Index from '../pages/Index'
import Mine from '../pages/Mine'
import Digital from '../pages/Digital'
import SoftGame from '../pages/SoftGame'
import Dynamic from '../pages/Dynamic'
import Inform from '../pages/Inform'
import DetailsMsg from '../pages/DetailsMsg'
import SelfMsg from '../pages/SelfMsg'
import ChangeMsg from '../pages/ChangeMsg'
import ChangeTouxiang from '../pages/ChangeTouxiang' 
import ChangeBackground from '../pages/ChangeBackground'
import ChangeUserName from '../pages/ChangeUserName'
import Login from '../pages/Login'
import Register from '../pages/Register'
import TelLogin from '../pages/TelLogin'
import Setting from '../pages/Setting'
import DigitalClassification from '../pages/DigitalClassification'
import DigitalBrand from '../pages/DigitalBrand'
import ContactAccount from '../pages/ContactAccount'
import ContactPhone from '../pages/ContactPhone'
import ContactEmail from '../pages/ContactEmail'
import SetPassword from '../pages/SetPassword'
import GuessLike from '../pages/GuessLike'
import HotSoft from '../pages/HotSoft'
import FriendPlay from '../pages/FriendPlay'
import GoodSoftRecommend from '../pages/GoodSoftRecommend'
import TodayUpdate from '../pages/TodayUpdate'
import SoftRecommend from '../pages/SoftRecommend'
import SoftUpdate from '../pages/SoftUpdate'
import GameUpdate from '../pages/GameUpdate'
import GameKind from '../pages/GameKind'
import SoftDetails from '../pages/SoftDetails'
import SoftShow from '../pages/SoftShow'
import GameShow from '../pages/GameShow'
import DigitalDetails from '../pages/DigitalDetails'
import SouSuo from '../pages/SouSuo'


import Application from '../pages/Application'
import TouTiaoDital from '../pages/index/TouTiaoDital'
import  Report from '../pages/index/Report'
import  topicDetail from '../pages/index/topicDetail'
import MyCollection from '../pages/MyCollection'
import MyConcerns from '../pages/MyConcerns'
import CollectMessage from '../pages/CollectMessage'
import Notice from '../pages/Notice'
Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: '主页',
      component: Index,
      // redirect: { name: '登录界面' },
    },
    {
      path: '/mine',
      name: '我的',
      component: Mine
    },
    {
      path: '/digital',
      name: '数码',
      component: Digital
    },
    {
      path: '/softGame',
      name: '应用游戏',
      component: SoftGame
    },
    {
      path: '/dynamic/:id',
      name: '动态',
      component: Dynamic
    },
    {
      path: '/inform',
      name: '管理规范',
      component: Inform
    },
    {
      path: '/detail',
      name: '详细资料',
      component: DetailsMsg
    },
    {
      path: '/self',
      name: '个人资料',
      component: SelfMsg
    },
    {
      path: '/change',
      name: '修改资料',
      component: ChangeMsg
    },
    {
      path: '/touxiang',
      name: '修改头像',
      component: ChangeTouxiang
    },
    {
      path: '/background',
      name: '修改背景',
      component: ChangeBackground
    },
    {
      path: '/username',
      name: '修改用户名',
      component: ChangeUserName
    },
    {
      path: '/login',
      name: '登录界面',
      component: Login
    },
    {
      path: '/register',
      name: '注册界面',
      component: Register
    },
    {
      path: '/telLogin',
      name: '手机登录界面',
      component: TelLogin
    },
    {
      path: '/setting',
      name: '系统设置界面',
      component: Setting
    },
    {
      path: '/digitalClassification/:id',
      name: '数码分类界面',
      component: DigitalClassification
    },
       {
      path: '/DigitalBrand',
      name: '数码品牌界面',
      component: DigitalBrand
    },
    {
      path: '/account',
      name: '绑定账号',
      component: ContactAccount
    },
    {
      path: '/phone',
      name: '绑定手机号',
      component: ContactPhone
    },
    {
      path: '/email',
      name: '绑定邮箱',
      component: ContactEmail
    },
    {
      path: '/pwd',
      name: '设置密码',
      component: SetPassword
    },
    {
      path: '/guessLike',
      name: '猜你喜欢',
      component: GuessLike
    },
    {
      path: '/hotSoft',
      name: '热门应用',
      component: HotSoft
    },
    {
      path: '/friendPlay',
      name: '好软畅玩',
      component: FriendPlay
    },
    {
      path: '/goodSoftRecommend',
      name: '好软推荐',
      component: GoodSoftRecommend
    },
    {
      path: '/todayUpdate',
      name: '今日更新',
      component: TodayUpdate
    },
    {
      path: '/softRecommend',
      name: '应用好软推荐',
      component: SoftRecommend
    },
    {
      path: '/softUpdate',
      name: '应用更新',
      component: SoftUpdate
    },
    {
      path: '/gameUpdate',
      name: '游戏更新',
      component: GameUpdate
    },
    {
      path: '/gameKind/:id',
      name: '游戏分类',
      component: GameKind
    },
      {
      path: '/touTiaoDital/:id',
      name: '文本详情',
      component: TouTiaoDital
    },
    {
      path: '/notice',
      name: '通知界面',
      component: Notice
    },
    {
      path:'/softDetails/:id',
      name:'详细信息',
      component:SoftDetails
    },
    {
      path: '/softShow/:id',
      name: '应用展示',
      component: SoftShow
    },
    {
      path:'/gameShow',
      name:'游戏展示',
      component:GameShow
    },
    {
     
        path:'/report/:id',
        name:'头条举报',
        component:Report
   
    },
    {
     
      path:'/topicDetail/:id',
      name:'话题详细',
      component:topicDetail
 
  },
    {  path:'/digitalDetails/:id',
      name:'数码详细信息',
      component:DigitalDetails},
      {
      path: '/application',
      name: '应用管理',
      component: Application
    },
    {
      path: '/myCollection',
      name: '我的收藏',
      component: MyCollection
    },
    {
      path: '/myConcerns',
      name: '我的关注',
      component: MyConcerns
    },
    {
      path: '/collectMessage',
      name: '收藏信息',
      component: CollectMessage
    },
    {
      path: '/sousuo',
      name: '搜索',
      component: SouSuo
    },
   
  ]
})
